<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://unpkg.com/react@16/umd/react.development.js"></script>
    <script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
    <script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
</head>
<body>
    <div id="app"></div>

    <script type="text/babel">

        /**
         * JSX
         *     允许在js中书写xml
         *     xml中可以包含子元素，但是结构中只能有且仅有一个顶级元素
         *     支持插值表达式
         *         插值表达式：类似ES6中模板字符串 ${表达式}
         *         插值表达式语法：{表达式}
         */

        ReactDOM.render(
            <div>
                <h1>Hello React!</h1>
                <h1>Hello React!</h1>
                <h1>{1+2}</h1>
            </div>,
            document.getElementById('app')
        );
    </script>

</body>
</html>
